import { http as axios } from './request'

//查询班别列表带产品信息
export const classList = (current: number, schoolId: string, size = 10, disable = 0) => {
	return axios({
		method: 'GET',
		url: '/api/system/class/page/list',
		params: { current, schoolId, size, disable }
	})
}

/**
 * 获取班别详情
 * @param id 
 */
export const classDetailById = (id: string) => {
	return axios({
		method: 'GET',
		url: '/api/system/class/detail/info',
		params: { id }
	})
}

/**
 * 产品详情 C1基础班 | 抵扣券 详情
 * @param id 
 */
export const productDetailById = (id: string) => {
	return axios({
		method: 'GET',
		url: '/api/system/driveProduct/detail/info',
		data: { id }
	})
}